package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  oneindia_in extends Reg{

	public void reg(String username, String password) {		
		

		String url = "http://user.oneindia.in/register.php?refer_url=http://mail.oneindia.in&reg_for=mail.oneindia.in";
		get(url);
		
		
		dr.findElement(By.name("email_type")).click();
		dr.findElement(By.name("email")).sendKeys(username);
		dr.findElement(By.name("password")).sendKeys(password);
		dr.findElement(By.name("re_password")).sendKeys(password);
		
		dr.findElement(By.name("display_name")).sendKeys("Rose Lock");
		
		dr.findElement(By.name("hint_ques")).sendKeys("Your pet name");
		dr.findElement(By.name("hint_ans")).sendKeys("little jack");
		dr.findElement(By.name("first_name")).sendKeys("llitle");
		dr.findElement(By.name("last_name")).sendKeys("look");
		dr.findElement(By.name("alt_email")).sendKeys("nml186@163.com");

		dr.findElement(By.name("captcha")).click();
		
	}

	public static void main(String[] args) {
		new oneindia_in().reg("qq331798654", "qq3131798654");
	}
	
	
}
